import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
const router = new Router({
    mode: "history",
    routes: [
        {
            path: "/",
            component: () => import("../layouts/index"),
            children: [
                {
                    path: '/main',
                    component: () => import("../views/main/index")
                },
                {
                    path: '/cate',
                    component: () => import("../views/cate/index")
                },
                {
                    path: '/cart',
                    component: () => import("../views/cart/index")
                },
                {
                    path: '/mine',
                    component: () => import("../views/mine/index")
                }
            ],

        },
        {
            path: "/account/login",
            component: () => import("../views/account/login")
        }
    ]
})
export default router